<?php
require_once('checklogin.php');
require_once('classQuanTriTin.php');
$qt = new quantritin;
$qt2 = new quantritin;
$theloai = $qt->TheLoai();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="main.php?p=theloai_list&amp;idTL={idTL}">
  <table width="90%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="13%">
      	  <label>
          <input type="radio" name="lang" id="lang" value="0" />
          </label>
        <img src="NgonNgu_vi.png" width="20" height="20" />
          <label>
          <input type="radio" name="lang" id="radio" value="1" />
          </label>
        <img src="NgonNgu_en.png" width="20" height="20" />
      </td>
      <td width="19%"><label>
        <img src="icon_theloai.png" alt="Thể loại" width="20" height="20" />
        <select name="theloai" id="theloai">
          <option value="-1">Chọn loại tin</option>
          <?php while($row_theloai=mysql_fetch_assoc($theloai)) {?>
          <?php $idTL = $row_theloai['idTL'];?>
          		<option class="theloai" value="<?=$row_theloai['idTL']?>"><?=$row_theloai['TenTL']?></option>
          <?php } ?>
        </select>
      </label></td>
      <td width="64%"><label>
        <img src="icon_loaitin.png" alt="Loại tin" width="20" height="20" />
        <select name="loaitin" id="loaitin">
        	<option>Cjon</option>
            <?php $loaitin=$qt2->LoaiTinTrongTheLoai($idTL); ?>
            <?php while($row_loaitin=mysql_fetch_assoc($loaitin)){ ?>
            		<option value="<?=$row_loaitin['idLT']?>"><?=$row_loaitin['Ten']?></option>
            <?php } ?>
        </select>
        
      </label></td>
      <td width="4%">&nbsp;</td>
    </tr>
  </table>

</form>
</body>
</html>
